package com.king.zxing.util;

import android.content.Context;
import android.content.pm.PackageManager;

import androidx.annotation.NonNull;

public class SystemUtil {
    public static boolean hasFlash(@NonNull Context context ){
        return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);
    }
}
